package main.java.cn.zjgsu.service;

import main.java.cn.zjgsu.dao.*;
import main.java.cn.zjgsu.domain.Resume;
import main.java.cn.zjgsu.domain.Student;

public class Service {
	
	Dao dao=new Dao();
	public Student login(String username, String password) throws Exception {
	
	    return  dao.findStudent(username,password);  
}
	public void stuinforead(String no) throws Exception{
		
		dao.findStudentinfo(no);
		
	}
	public void addresumes(String no,String txt,String state) throws Exception {
		// TODO Auto-generated method stub
		 dao.addResumesByno(no, txt, state);
}
	public void findResumes(String no) throws Exception {
		// TODO Auto-generated method stub
		dao.findResumes(no);
		
	}
	public void updateResume(String no,String txt,String introduce,String resname){
		dao.updateResume(no, txt, introduce, resname);
	}
}